package com.kamistoat.meimeimall.meimeimallauthserver.feign;

import com.kamistoat.meimeimall.common.utils.R;
import com.kamistoat.meimeimall.meimeimallauthserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * (已弃用) member模块Feign调用
 */
@FeignClient("meimeimall-member")
public interface MemberFeignService {
    /**
     * 远程接口，调用会员模块的注册接口
     *
     * @param userRegisterVo auth模块的Vo，会员模块接收使用的是To
     * @return R
     */
    @PostMapping("meimeimallmember/member/register")
    R register(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("meimeimallmember/member/login")
    R login(@RequestParam String loginAccount, @RequestParam String password,
            @RequestParam String IP, @RequestParam String IPAddr);

}
